package com.inifitness.display.controller.common;


import com.inifitness.common.result.Result;

import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import lombok.extern.log4j.Log4j2;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * TODO: (sunjinfeng 2024/4/18)
 *
 * @author sunjinfeng
 * @version 1.0.0
 * @since 2024/4/18 14:39
 */
@RestController
@Log4j2
@AllArgsConstructor
@Tag(name = "3.通用接口")
@RequestMapping("/api/v1/policy")
public class PoliciesController {

  @Operation(summary = "获取平台协议")
  @PostMapping("/{type}")
  public Result detail(@RequestParam(value = "appid", required = true) String mac,
      @PathVariable(value = "type") Long type) {
    return Result.success();
  }
}
